package com.netease.task.meta;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book {

    private Integer id;

    private String title;

    private String summary;

    private String picture;

    private String detail;

    private BigDecimal price;

    private Integer isSell;  // 是否售出

    private Integer number;

    public Book(String title, String summary, String picture, String detail, BigDecimal price, Integer isSell, Integer number) {
        this.title = title;
        this.summary = summary;
        this.picture = picture;
        this.detail = detail;
        this.price = price;
        this.isSell = isSell;
        this.number = number;
    }
}
